<div class="caseList">
    <ul>
        <?php
        foreach ($result as $item) {
            $link = url('node/' . $item->nid);
            $bg_brif = '';
            foreach ($item->field_edu_bg as $school) {
                $bg_brif .= $school['value'] . ' ';
            }
            $test_score = '';
            if ($item->field_toefl[0]['value'])
                $test_score .= 'GPA:' . $item->field_gpa[0]['value'];
            if ($item->field_toefl[0]['value'])
                $test_score .= ' TOEFL:' . $item->field_toefl[0]['value'];
            if ($item->field_gre[0]['value'])
                $test_score .= ' GRE:' . $item->field_gre[0]['value'];
            if ($item->field_gmat[0]['value'])
                $test_score .= ' GMAT:' . $item->field_gmat[0]['value'];
        ?>
            <li>
                <a href="<?php print $link; ?>"><?php print $item->title; ?> -- <?php print $bg_brif; ?> </a>
                <p class="listAbstract"><?php print $test_score; ?></p>
                <ul class="admissionResult">
                    <caption>申请结果：</caption>
                <?php
                $i = 0;
                foreach ($item->field_admission as $ad) {
                    print "<li>".$ad['value']."</li>";
                    if( $i+1 != count($item->field_admission) )
                            print ', ';

                    $i++;
                }
                ?>
            </ul>
        </li>
        <?
            }
        ?>
    </ul>
</div>